<Window x:Class="DominionCS.Views.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:prismcmd="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation"
        xmlns:prismrgn="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
        Title="Dominion.NET" WindowStartupLocation="CenterScreen" Height="620" Width="850"
        Icon="../Images/PnPIcon.ico"
        mc:Ignorable="d" d:DesignHeight="620" d:DesignWidth="850">

    <Window.Resources>
        <Style x:Key="MenuButtonStyle" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid>
                            <Rectangle Opacity="0" Fill="#66FFFFFF" Stroke="{x:Null}" StrokeThickness="0.5" HorizontalAlignment="Stretch" Margin="2,4,2,4" x:Name="rectangle" VerticalAlignment="Stretch"/>
                            <Path Fill="{x:Null}" Stretch="Fill" Stroke="#7FFFFFFF" StrokeThickness="1" HorizontalAlignment="Left" Margin="0,4,0.5,4" Width="1" Height="18" Grid.RowSpan="1" Data="M-87.28,4 L-87.28,17"/>
                            <Path Fill="{x:Null}" Stretch="Fill" Stroke="#7FFFFFFF" StrokeThickness="1" HorizontalAlignment="Right" Margin="0,4,0.5,4" Width="1" Height="18" Grid.RowSpan="1" Data="M-87.28,4 L-87.28,17"/>
                            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="10,4,10,0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" TextElement.Foreground="LightGray" RecognizesAccessKey="True"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsFocused" Value="True"/>
                            <Trigger Property="IsDefaulted" Value="True"/>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Opacity" TargetName="rectangle" Value="0.5"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True">
                                <Setter Property="Opacity" TargetName="rectangle" Value="1"/>
                                <Setter Property="Fill" TargetName="rectangle" Value="#FF000000"/>
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <RadialGradientBrush>
                <GradientStop Color="#FF80B3D4"/>
                <GradientStop Color="#FF456AB4" Offset="1"/>
            </RadialGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" MinWidth="200"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="3*"/>
        </Grid.ColumnDefinitions>

        <!-- App Banner -->
        <Canvas x:Name="Banner" Height="Auto" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" >
            <StackPanel Canvas.Left="15" Orientation="Vertical" Width="Auto">
                <TextBlock Text="Dominion" TextWrapping="NoWrap" Foreground="#FFBBD3EF" FontSize="18" Opacity="0.7" TextAlignment="Left" FontWeight="Bold" />
                <StackPanel Orientation="Horizontal" Width="Auto">
                    <Button Content="Exit" prismcmd:Click.Command="{Binding ExitCommand}"
                            Style="{DynamicResource MenuButtonStyle}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
                    <Button Content="About..." prismcmd:Click.Command="{Binding AboutCommand}"
                            Style="{DynamicResource MenuButtonStyle}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
                </StackPanel>
            </StackPanel>
        </Canvas>

        <!-- TopLeft Region -->
        <Border Margin="8,2,2,8" Grid.Row="1" BorderBrush="#FF4355C1" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4">
        	<ContentControl x:Name="TopLeftRegion" prismrgn:RegionManager.RegionName="TopLeftRegion"
                            Style="{StaticResource ContentControlRegionStyle}"
        		            VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
        </Border>

        <!-- BottomLeft Region -->
        <Border Margin="8,2,2,8" BorderBrush="#FF4355C1" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4" Grid.Row="2">
        	<ContentControl x:Name="BottomLeftRegion" prismrgn:RegionManager.RegionName="BottomLeftRegion"
                            Style="{StaticResource ContentControlRegionStyle}"
        		            VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
        </Border>

        <!-- Supply Region -->
        <Border Margin="2,2,8,8" Grid.Column="2" Grid.Row="1" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4" BorderBrush="#FF4355C1" Grid.RowSpan="2">
        	<ContentControl x:Name="Supply" prismrgn:RegionManager.RegionName="SupplyRegion"
        		            Style="{StaticResource ContentControlRegionStyle}"
                            VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
        </Border>

        <GridSplitter Grid.Row="1" Grid.Column="1"
                      HorizontalAlignment="Center" VerticalAlignment="Stretch" Background="{x:Null}" Grid.RowSpan="2"/>
    </Grid>

</Window>
